/**
 * Created by huxia on 2016/12/9.
 */
var Admin = require('./db')['admin'];

Admin.findByName = function (name) {
    return Admin.findOne({
        where:{
            name:name
        }
    });
};

module.exports = Admin;